package com.ngender;

/**
 * 性别预测结果类
 */
public class GenderResult {
    private final String gender;
    private final double probability;

    public GenderResult(String gender, double probability) {
        this.gender = gender;
        this.probability = probability;
    }

    public String getGender() {
        return gender;
    }

    public double getProbability() {
        return probability;
    }

    @Override
    public String toString() {
        return String.format("Gender: %s, Probability: %.3f", gender, probability);
    }
}